<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@include file="/WEB-INF/views/include/head.jsp" %>
<html>
<head>
	<meta name="decorator" content="moduleView" content="text/html; charset=utf-8"/>
	<title></title> 
	<script src="${staticPath}/lib/jquery-urldecoder/jquery.urldecoder.min.js" type="text/javascript"></script>
	<script type="text/javascript">
		var rootPath = "${contextPath}";
		var sapUrl='${sapUrl}';
		sapUrl = $.url.decode(sapUrl);
		$(document).ready(function() {
			 $("#jbxxFrame").attr("src",sapUrl); 
			 
		});

		$(function(){
			var data = ${workflowdata};
			//data = jQuery.parseJSON(data);
			initApproveInfo(data);
		});
	</script>
</head>
<body>
	<div class="Report_f">
		<div class="Report_f_1">
			<div class="Report_f_title_1">${title}</div>
			<div class="tab-content Report_f_title_3">
				<div class="Report_f_title_5">
					<ul class="nav nav-tabs Report_f_title_2" id="myTab">
						  <li class="active"><a href="#label_1" data-toggle="tab">基本信息</a></li>
						  <li><a href="#workflow" data-toggle="tab">流程审批</a></li> 
						  <li><a href="#diagram" data-toggle="tab">流程图</a></li>
						</ul> 
					<div class="tab-content Report_f_title_3">
						<div class="tab-pane active" id="label_1">
							<iframe id="jbxxFrame"  name="jbxxFrame" frameborder="no" width="100%" height="500px"></iframe>
						</div>
						<div class="tab-pane" id="workflow">
							<c:import url="taskInfo.jsp" />
						</div>
						<div class="tab-pane" id="diagram">
							<iframe id="diagram_iframe" src="${contextPath}/bpm/workflow/queryFlowImage?defId=${workflow.defId}&instanceId=${instanceId}" frameborder=0 width="100%"></iframe>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>